package com.yaolonga.dc.core;

import lombok.Data;

import java.util.List;

/**
 * @Author: yaolong
 * @CreateTime: 2024-10-20  17:41
 * @Description: DcPage
 * @Version: 1.0
 */
public class DCPage<T> {
    private long page;
    private long pageSize;
    private long total;
    private long totalPage;
    private List<T> data;

    public DCPage() {
    }
    public DCPage(long page, long pageSize, long total, long totalPage, List<T> data) {
        this.page = page;
        this.pageSize = pageSize;
        this.total = total;
        this.totalPage = totalPage;
        this.data = data;
    }

    public long getPage() {
        return page;
    }

    public void setPage(long page) {
        this.page = page;
    }

    public long getPageSize() {
        return pageSize;
    }

    public void setPageSize(long pageSize) {
        this.pageSize = pageSize;
    }

    public long getTotal() {
        return total;
    }

    public void setTotal(long total) {
        this.total = total;
    }

    public long getTotalPage() {
        return totalPage;
    }

    public void setTotalPage(long totalPage) {
        this.totalPage = totalPage;
    }

    public List<T> getData() {
        return data;
    }

    public void setData(List<T> data) {
        this.data = data;
    }
}
